//package com.simple.quartz.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.quartz.SchedulerFactoryBean;
//
//import javax.sql.DataSource;
//
///**
// * @Description 定时任务配置（单机部署建议删除此类和qrtz数据库表，默认走内存会最高效）
// * @Author xiaoke
// * @Date 2024/8/19 18:12
// * @Version 1.0
// */
//@Configuration
//public class ScheduleConfig {
//
//    @Bean
//    public SchedulerFactoryBean schedulerFactoryBean(DataSource dataSource) {
//        SchedulerFactoryBean factory = new SchedulerFactoryBean();
//        factory.setDataSource(dataSource);
//        return factory;
//    }
//}
